<template>
	<div>
		 <el-divider content-position="left"><span style="font-size: 1.15rem;">个人成绩查询</span><span style="margin-left: 2rem;margin-right:1rem;"></span>
		 </el-divider>
		 
		 <my-table v-if="show" listPath="grade/page2" savePath="" deletePath="" :table="table" :pageParams="pageParams" dialogTitle="对话框" :pageSize="[5,10,20,35,50]" :btns="false" >
		  
		 </my-table>
		 
	</div>
</template>

<script>
	import myTable from '../../components/myTable.vue';
	export default{
		components:{myTable},
		data() {
			return {
				table:[
					{
					  title:'课程',
					  field:'course.name'
					},
					{
					  title:'成绩',
					  field:'grade'
					},
				],
				show:false
				,
				pageParams:{
					limit:10,
					page:1,
					sort:'id',
					order:'asc',
					search:'',
				}
			}
		},
		created() {
			this.$ajax.post("grade/peasonId",{}).then(res=>{
				this.pageParams.xsId=res.data.data;
				this.show=true;
				console.log(this.pageParams)
			})
		}
	}
</script>

<style>
</style>
